package cn.school.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 会议表
 * @TableName meeting_main
 */
@TableName(value ="meeting_main")
@Data
public class MeetingMain implements Serializable {
    /**
     * 会议id
     */
    @TableId
    private Long meetingId;

    /**
     * 会议名称
     */
    private String meetingName;

    /**
     * 老师/学生id
     */
    private Long meetingPersonId;

    /**
     * 参会学生状态id
     */
    private Long meetingPersonStatus;

    /**
     * 参会人员事件id
     */
    private Long meetingPersonThing;

    /**
     * 参会人员聊天记录id
     */
    private Long meetingPersonToke;

    /**
     * 会议开始时间
     */
    private Date meetingBeginTime;

    /**
     * 会议结束时间
     */
    private Date meetingEndTime;

    /**
     * 会议总人数
     */
    private Integer meetingPersonSum;

    /**
     * 会议发起人
     */
    private Long meetingPersonCreate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MeetingMain other = (MeetingMain) that;
        return (this.getMeetingId() == null ? other.getMeetingId() == null : this.getMeetingId().equals(other.getMeetingId()))
            && (this.getMeetingName() == null ? other.getMeetingName() == null : this.getMeetingName().equals(other.getMeetingName()))
            && (this.getMeetingPersonId() == null ? other.getMeetingPersonId() == null : this.getMeetingPersonId().equals(other.getMeetingPersonId()))
            && (this.getMeetingPersonStatus() == null ? other.getMeetingPersonStatus() == null : this.getMeetingPersonStatus().equals(other.getMeetingPersonStatus()))
            && (this.getMeetingPersonThing() == null ? other.getMeetingPersonThing() == null : this.getMeetingPersonThing().equals(other.getMeetingPersonThing()))
            && (this.getMeetingPersonToke() == null ? other.getMeetingPersonToke() == null : this.getMeetingPersonToke().equals(other.getMeetingPersonToke()))
            && (this.getMeetingBeginTime() == null ? other.getMeetingBeginTime() == null : this.getMeetingBeginTime().equals(other.getMeetingBeginTime()))
            && (this.getMeetingEndTime() == null ? other.getMeetingEndTime() == null : this.getMeetingEndTime().equals(other.getMeetingEndTime()))
            && (this.getMeetingPersonSum() == null ? other.getMeetingPersonSum() == null : this.getMeetingPersonSum().equals(other.getMeetingPersonSum()))
            && (this.getMeetingPersonCreate() == null ? other.getMeetingPersonCreate() == null : this.getMeetingPersonCreate().equals(other.getMeetingPersonCreate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMeetingId() == null) ? 0 : getMeetingId().hashCode());
        result = prime * result + ((getMeetingName() == null) ? 0 : getMeetingName().hashCode());
        result = prime * result + ((getMeetingPersonId() == null) ? 0 : getMeetingPersonId().hashCode());
        result = prime * result + ((getMeetingPersonStatus() == null) ? 0 : getMeetingPersonStatus().hashCode());
        result = prime * result + ((getMeetingPersonThing() == null) ? 0 : getMeetingPersonThing().hashCode());
        result = prime * result + ((getMeetingPersonToke() == null) ? 0 : getMeetingPersonToke().hashCode());
        result = prime * result + ((getMeetingBeginTime() == null) ? 0 : getMeetingBeginTime().hashCode());
        result = prime * result + ((getMeetingEndTime() == null) ? 0 : getMeetingEndTime().hashCode());
        result = prime * result + ((getMeetingPersonSum() == null) ? 0 : getMeetingPersonSum().hashCode());
        result = prime * result + ((getMeetingPersonCreate() == null) ? 0 : getMeetingPersonCreate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", meetingId=").append(meetingId);
        sb.append(", meetingName=").append(meetingName);
        sb.append(", meetingPersonId=").append(meetingPersonId);
        sb.append(", meetingPersonStatus=").append(meetingPersonStatus);
        sb.append(", meetingPersonThing=").append(meetingPersonThing);
        sb.append(", meetingPersonToke=").append(meetingPersonToke);
        sb.append(", meetingBeginTime=").append(meetingBeginTime);
        sb.append(", meetingEndTime=").append(meetingEndTime);
        sb.append(", meetingPersonSum=").append(meetingPersonSum);
        sb.append(", meetingPersonCreate=").append(meetingPersonCreate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}